package com.equipment_management_p1.controller;

import com.equipment_management_p1.service.ex.ServiceException;
import com.pojo.util.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;


public class BaseController {
    @ExceptionHandler(RuntimeException.class)
    public Result<Void> handleException(Throwable e){
       return Result.failure();
    }
}
